package com.meilingcloud.biobank.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.meilingcloud.biobank.domain.Source;
import com.meilingcloud.biobank.domain.vo.StatisticVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 样本源 Mapper接口
 *
 * @author chenl
 * @date 2021-02-26
 */
public interface SourceMapper extends BaseMapper<Source> {

    /**
     * 根据样本源类型统计样本数
     */
    List<StatisticVo> statisticSource();

    /**
     * 根据样本源id获取样本源信息
     *
     * @param sourceId 样本源id
     * @return result
     */
    Source getSourceInfoById(@Param("sourceId") Long sourceId);
}
